package com.fcc.wfly.entitlement.hal;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.springframework.hateoas.ResourceSupport;

import java.util.HashMap;
import java.util.Map;

public class ObligationIndicatorInfoJson extends ResourceSupport {

    private Map<String, Object> embedded = new HashMap<String, Object>();

    @JsonProperty("_embedded")
    public Map<String, Object> getEmbedded() {
        return embedded;
    }

    public void embedErrorMessage(Object resource) {
        embedded.put("errorMessage", resource);
    }

    public void embedExistsIndicator(Object resource) {
        embedded.put("existsIndicator", resource);
    }

}